<template>
  <div class="heads">
    <h1>数据可视化-ECharts</h1>
    <div class="showTime"></div>
  </div>
</template>

<script>
import showTime from '../../assets/js/functions'
export default {
  name: 'Heads',
  mounted() {
    showTime()
  }
}
</script>

<style lang="scss" scoped>
.heads {
  position: relative;
  height: 1.25rem;
  background: url(../../assets/img/head_bg.png) no-repeat;
  background-size: 100% 100%;
  h1 {
    color: #fff;
    text-align: center;
    font-size: 0.475rem;
    line-height: 1rem;
  }
  .showTime {
    position: absolute;
    right: 30px;
    top: 0;
    line-height: 0.9375rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.25rem;
  }
}
</style>